package grape.house.rest.estate.mapper;

import grape.house.rest.estate.form.EstateListForm;
import grape.house.service.estate.po.Estate;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.house.rest.estate.form.EstateCreateForm;
import grape.house.rest.estate.form.EstateUpdateForm;
import grape.house.rest.estate.form.EstateListPageForm;
import grape.house.rest.estate.vo.EstateVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 楼盘表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface EstateWebMapper extends WebMapper<EstateVo, Estate> {

    Estate formToPo(EstateCreateForm f);
    Estate formToPo(EstateUpdateForm f);
    Estate formToPo(EstateListPageForm f);
    Estate formToPo(EstateListForm f);
}
